const {ipcRenderer} = require('electron')
ipcRenderer.on('show-notification', (event, title, body, onclick = () => {}) => {
  console.log(body)
  const myNotification = new Notification(title, {body})
  myNotification.onclick = onclick
})